<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <title>IOS兼容问题-100%</title>
    <style>
        *{
            margin: 0;padding: 0;
        }
        html,body {
            height: 100%;
        }
        .box1,.box2 {
            height: 50%;
            width: 100%;
            position: relative;
            font-size: 25px;
        }
        .box1 {
            background-color: #0086b3;
        }
        .box2 {
            background-color: #b3d4fc;
        }
        .text {
            position: absolute;
            bottom: 0;
            left: 0;
            /*background-color: #795da3;*/
            width: 100%;
            height: 50px;
        }
    </style>
</head>
<body>
<div class="box1">
    <div>50%</div>
    <div class="text">height: 100%</div>
</div>
<div class="box2">
    <div>50%</div>
    <div class="text">height: 100%</div>
</div>
<div></div>
</body>
</html>